package com.myway.components.jms.artifact;


import org.apache.log4j.Logger;

import com.myway.core.jms.artifact.JobArtifact;

/**
 * 类名称：SmsJobArtifact <br/>
 * 类描述：消息实体,加入了消息内容 是有用的 <br/>
 * 创建时间：2015年12月8日 下午1:36:48 <br/>
 * @author 张涛
 * @version V1.0
 */
public class SmsJobArtifact extends JobArtifact {
	
	private static final Logger log = Logger.getLogger(SmsJobArtifact.class);
	
	private static final long serialVersionUID = 2124257217233357559L;
	//项目模板
	//private SmsTemplate smsTemplate;
	//private SmsMessageBM smsMessageBM;
	//保存短信时的时间戳
	private long timestamp;
	
	private String message ;
	
	private String[] phones;

	/**
	 * @param operation
	 * @param messageType
	 */
	public SmsJobArtifact(String operation, String messageType,String airline) {
		super(operation, messageType,airline);
	}

	public long getTimestamp() {
		return timestamp;
	}

	
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	@Override
	public String toString() {
		String sms = "airline:"+getAirline()+",messageType:"+getMessageType()+",operation:"+getOperation();
		log.debug(sms);
		return sms;
	}

	public String[] getPhones() {
		return phones;
	}

	public void setPhones(String[] phones) {
		this.phones = phones;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	
	
	
}
